<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<base href="<%=basePath%>" />
<%@ taglib prefix="s" uri="/struts-tags"%>
<title>Ph.D Bible - Papers</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="img/Envision.css" type="text/css" />
</head>
<body>
	<div id="wrap">
		<div id="header">
			<h1 id="logo-text">Ph.D Bible</h1>
			<h2 id="slogan">a little step a day, keep you nearer to your target</h2>
			<div id="header-links">
				<p>
					<a href="listPaper.do">Home</a> | <a
						href="listPaper.do">Contact</a>
				</p>
			</div>
		</div>
		<div id="menu">
			<ul>
				<li id="current"><a href="listPaper.do">Papers</a></li>
				<li><a href="listSentence.do">Sentences</a></li>
				<li><a href="listOpinion">Opinions</a></li>
				<li class="last"><a href="listPaper.do">About</a></li>
			</ul>
		</div>
		<div id="content-wrap">
			<div id="sidebar">
				<h1>Search Paper</h1>
			    <form action="searchPaper.do" class="searchform" method="post">
					<p>
						<input name="keyword" class="textbox" type="text" /> <input
							name="search" class="button" value="Search" type="submit" />
					</p>
				</form>
							<form action="insertPaper.do">
				
				<h1>Input New Paper &nbsp;<input name="search" class="button" value="save" type="submit" /></h1>
				<ul class="sidemenu">
					<li><strong>Domain&nbsp;<a href="listPaperType.do"><font style="color:red">[+]</font></a></strong><select name="type">

								<s:iterator value="paperTypes">
									<option value="${id}">
										<s:property value="name" />
									</option>
								</s:iterator>
						</select></li>
					<li><a href="#TemplateInfo"><strong>Title</strong><input name="title" size="25"/></a></li>
					<li><a href="#SampleTags"><strong>Author</strong><input name="author" size="25"/></a></li>
					<li><a href="http://www.free-css.com/"><strong>Source</strong><input name="source" size="25"/></a></li>
					<li><a href="http://www.free-css.com/"><strong>Year</strong><select name="year">
								<option value="2012">2012</option>
								<option value="2011">2011</option>
								<option value="2010">2010</option>
								<option value="2009">2009</option>
								<option value="2008">2008</option>
								<option value="2007">2007</option>
								<option value="2006">2006</option>
								<option value="2005">2005</option>
								<option value="2004">2004</option>
								<option value="2003">2003</option>
								<option value="2002">2002</option>
								<option value="2001">2001</option>
								<option value="2000">2000</option>
						</select></a></li>
						<li><strong>Affiliation</strong><input name="affiliation" size="25"/></li>
				</ul>
				</form>
				<h1>Note</h1>
				<div class="left-box">
					<p>You can put paper information into your paper lab by filling
				in the above form.
					</p>
				</div>
			</div>

			<div id="main">
				<a name="TemplateInfo"></a>
				<s:iterator value="papers">
					<h1>
						<s:property value="title" />
					</h1>
						<strong><s:property value="author" /> </strong>
						<s:property value="affiliation" />
						<font style="color:red"><s:property value="year" /></font>
					<br/>
						<font style="color:#1773BC"><s:property value="source" /></font>
					<p class="post-footer align-right">
						sentences<a class="comments" href="paperSentence.do?paperId=${Id}"> <font
							style="font-size: 12; font-family: verdana">[<s:property
								value="sentenceCount" />] </font></a> opinions<a class="readmore"
							href="paperOpinion.do?paperId=${Id}"> <font
							style="font-size: 12; font-family: verdana">[<s:property
								value="opinionCount" />] </font></a> 
					</p>
				</s:iterator>
				<br />
				<s:if test="curPage!=1">
					<a href="listPaper.do?curPage=1&pageSize=${pageSize}">home</a>
				</s:if> <s:if test="curPage-3>0&&curPage<=totalPage">
					<a href="listPaper.do?curPage=${curPage-3}&pageSize=${pageSize}"><s:property
							value="curPage-3" /></a>
				</s:if> <s:if test="curPage-2>0&&curPage<=totalPage">
					<a href="listPaper.do?curPage=${curPage-2}&pageSize=${pageSize}"><s:property
							value="curPage-2" /></a>
				</s:if> <s:if test="curPage-1>0&&curPage<=totalPage">
					<a href="listPaper.do?curPage=${curPage-1}&pageSize=${pageSize}"><s:property
							value="curPage-1" /></a>
				</s:if> <s:property value="curPage" /> <s:if
					test="curPage+1>0&&curPage+1<=totalPage">
					<a href="listPaper.do?curPage=${curPage+1}&pageSize=${pageSize}"><s:property
							value="curPage+1" /></a>
				</s:if> <s:if test="curPage+2>0&&curPage+2<=totalPage">
					<a href="listPaper.do?curPage=${curPage+2}&pageSize=${pageSize}"><s:property
							value="curPage+2" /></a>
				</s:if> <s:if test="curPage+3>0&&curPage+3<=totalPage">
					<a href="listPaper.do?curPage=${curPage+3}&pageSize=${pageSize}"><s:property
							value="curPage+3" /></a>
				</s:if> <a href="listPaper.do?curPage=${totalPage}&pageSize=${pageSize}">end</a>
				&nbsp;&nbsp;&nbsp;&nbsp;Total Pages: <s:property value="totalPage" />
			</div>
		</div>
		<div id="footer">
			<p>
				&copy; 2012 <strong>Paper Bible</strong> | Design by: <a
					href="http://www.styleshout.com/">styleshout</a> | Valid <a
					href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a
					href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
					href="listPaper.do">Home</a>&nbsp;|&nbsp; <a
					href="http://www.free-css.com/">Sitemap</a>&nbsp;|&nbsp;
			</p>
		</div>
	</div>
</body>
</html>
